package com.android.juguotang.model;

import com.android.juguotang.model.group.GroupMainData;
import com.android.juguotang.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2018/3/8.
 */

public abstract class GroupMainDataCallback  extends Callback<GroupMainData> {
    @Override
    public GroupMainData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
//        MyLog.e("inest","GroupMainData="+string);
        GroupMainData data = new Gson().fromJson(string, GroupMainData.class);
        return data;
    }
}
